<%--
  Created by IntelliJ IDEA.
  User: 34289
  Date: 2024/10/29
  Time: 上午8:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@page import="jspSamples..unit7.websiteSample.*" %>
<%
    request.setCharacterEncoding("GBK");
%>
<%
    News News = new News();
    String NewsID = request.getParameter("newsID");
    if (news.DelNews(NewsID))
        out.print("<script>alert('删除新闻成功!');location.href= 'news.jsp';</script>");
    else {
        out.print("<script>alert('删除新闻失败!');location.href= 'news.jsp';</script>");
    }
%>
<html>
<head>
    <title>Title</title>
</head>
<body>

</body>
</html>
